package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 轮播持久化实体类
 * @author lds
 * @since 2023-02-17 09:10
 * @version 1.0
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("tb_carousel")
public class Carousel implements Serializable {
    /**
     * 编号(主键、自增)
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 轮播图URL
     */
    @TableField("img_url")
    private String imgUrl;
    /**
     * 标题
     */
    @TableField("img_title")
    private String imgTitle;

    /**
     * 跳转链接
     */
    @TableField("img_link")
    private String imgLink;

    /**
     * 创建时间
     */
    @TableField(exist = false)
    private LocalDateTime createDate;
}
